﻿<%@ Page Language="C#" MasterPageFile="~/Views/Shared/AccountSite.Master" Inherits="System.Web.Mvc.ViewPage<Entity.Car_Rental.UserBases>" %>

<asp:Content ID="registerTitle" ContentPlaceHolderID="TitleContent" runat="server">
    用户注册
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="SiteMap" runat="server">
    <a href="/Home/Index">首页</a> &gt; 用户注册
</asp:Content>
<asp:Content ID="registerContent" ContentPlaceHolderID="MainContent" runat="server">
    <% using (Html.BeginForm())
       { %>
    <fieldset>
        <legend>帐户信息</legend>
        <div style="margin-bottom: 10px">
            <%: Html.ValidationSummary(true) %>
        </div>
        <div class="editor-label">
            用户名：
        </div>
        <div class="editor-field">
            <%: Html.TextBoxFor(m => m.Name, new { @class = "input" })%>
            <%: Html.ValidationMessageFor(m => m.Name) %>
        </div>
        <div class="clear">
        </div>
        <div class="editor-label">
            电子邮件：
        </div>
        <div class="editor-field">
            <%: Html.TextBoxFor(m => m.Email, new { @class = "input" })%>
            <%: Html.ValidationMessageFor(m => m.Email) %>
        </div>
        <div class="clear">
        </div>
        <div class="editor-label">
            密码：
        </div>
        <div class="editor-field">
            <%: Html.PasswordFor(m => m.Password, new { @class = "input" })%>
            <%: Html.ValidationMessageFor(m => m.Password) %>
        </div>
        <div class="clear">
        </div>
        <div class="editor-label">
            确认密码：
        </div>
        <div class="editor-field">
            <%: Html.PasswordFor(m => m.ConfirmPassword, new { @class = "input" })%>
            <%: Html.ValidationMessageFor(m => m.ConfirmPassword) %>
        </div>
        <div class="clear">
        </div>
        <div class="editor-label">
            证件类型：
        </div>
        <div class="editor-field">
            <%: Html.IDTypeForSelectList()%>
            <%: Html.ValidationMessageFor(m => m.IDType)%>
        </div>
        <div class="clear">
        </div>
        <div class="editor-label">
            证件号码：
        </div>
        <div class="editor-field">
            <%: Html.TextBoxFor(m => m.IDNumber, new { @class = "input" })%>
            <%: Html.ValidationMessageFor(m => m.IDNumber)%>
        </div>
        <div class="clear">
        </div>
        <p>
            <input type="submit" value="注册" class="button" />
        </p>
    </fieldset>
    <% } %>
</asp:Content>
